<?php

namespace app\admin\service;

use app\admin\dao\AreaDao;

/**
 * Class CityTreeService
 * @package app\area\service
 */
class CityTreeService
{
    private AreaDao $areaDao;

    public function __construct(AreaDao $areaDao)
    {
        $this->areaDao = $areaDao;
    }

    /**
     * 列表
     */
    public function index()
    {
        //这里如果要修改查询，建议把查询放到dao层去
       return $this->areaDao->selectCities();
    }

}
